.chatComponent_recommendedCont {
  // display: inline-block !important;
  // width: auto !important;
  // max-width: 96% !important;
  box-sizing: border-box !important;
  height: 32px;
  background: #f5f6f8;
  border-radius: 8px;
  margin-bottom: 8px;
  margin-right: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #7587a5;
  padding: 5px 12px;
}

.chatComponent_recommendedContTag {
  background: #ffffff !important;
}

.chatComponent_recommendedCont_caseY_conver {
  background: #f5f6f8 !important;
  color: #7587a5 !important;
}

.chantComponent_offCloseIcon {
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 44px;
  padding-bottom: 30px;
  box-sizing: border-box;
}

/* 针对大部分浏览器 */
.chatComponent_recommendedCont_caseY {
  overflow-y: scroll;
  width: 100%;
  max-height: 108px;
  transition: overflow-y 0.3s ease;
  /* 平滑过渡效果 */
}

/* 当鼠标悬浮时显示滚动条 */
.chatComponent_recommendedCont_caseY:hover {
  overflow-y: scroll;
}

/* Firefox专用的滚动条隐藏和显示 */
.chatComponent_recommendedCont_caseY {
  scrollbar-width: thin;
  /* 设置滚动条为薄型，这将在鼠标悬浮时生效 */
  scrollbar-color: gray transparent;
  /* 设置滚动条和轨道的颜色 */
}

/* 当鼠标悬浮时显示滚动条 */
.chatComponent_recommendedCont_caseY:hover {
  scrollbar-width: auto;
  /* 鼠标悬浮时恢复滚动条 */
}

.chatInput_case {
  // height: 184px;
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
  font-family: PingFang SC;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  background: #ffffff;

  .chatInput_case_bor {
    width: 1px;
    height: 14px;
    background: #dde3f2;
    margin: 0 8px;
  }

  .chatInput_upload_def {
    width: 20px;
    height: 20px;
  }

  .chatInput_case_title {
    font-family: PingFang SC;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    color: #a2adc0;
  }

  .textarea-container {
    position: relative;
    width: 100%;

    .speechRecognizer-box {
      position: absolute;
      top: 14px;
      bottom: 2px;
      left: 2px;
      right: 2px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      background: #fafbfc;
      gap: 8px;

      .bar {
        user-select: none;
        -webkit-user-drag: none;
        -khtml-user-drag: none;
        -moz-user-drag: none;
        -o-user-drag: none;
        user-drag: none;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
      }

      .text {
        color: #000;
        font-size: 14px;
      }

      .cancel {
        cursor: pointer;
        color: #7587a5;
        font-size: 14px;
      }

      .close {
        position: absolute;
        top: 12px;
        right: 12px;
        cursor: pointer;
        user-select: none;
      }
    }
  }

  .chatInput_footer_tips {
    font-family: PingFang SC;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    color: #a2adc0;
    padding-top: 10px;
  }

  .chatInput_speech_text {
    font-size: 20px;
    cursor: pointer;
  }
}

.chatInput_case_absIcon {
  bottom: 42px;
  right: 20px;
}

.chatInput_case_uploadCase {
  position: relative;
  padding-top: 1px;
  margin: 6px 0;

  .chatInput_case_uploadposCase:hover {
    .chatInput_loadIcon {
      display: flex;
    }

    .chat-file-remove-icon {
      display: flex;
    }
  }

  img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
  }

  .chatInput_loadIcon {
    display: none;
    position: absolute;
    left: 41px;
    top: 5px;
  }

  .chatInput_loadIcon:hover {
    display: flex;
  }

  .chat-file-remove-icon {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
  }

  .chat-file-remove-icon:hover {
    display: flex;
  }
}
.chat-input-file-upload-case {
  position: relative;
  margin: 6px 0;
  .chatInput_case_uploadposCase {
    display: flex;
    padding: 6px;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    border: 1px solid #dde3f2;
    background: #fff;
  }
  .chatInput_case_uploadposCase:hover {
    .chatInput_loadIcon {
      display: flex;
    }

    .chat-file-remove-icon {
      display: flex;
    }
  }

  img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
  }

  .chatInput_loadIcon {
    display: none;
    position: absolute;
    left: 41px;
    top: 5px;
  }

  .chatInput_loadIcon:hover {
    display: flex;
  }

  .chat-file-remove-icon {
    display: none;
    position: absolute;
    right: -24px;
    top: -24px;
  }

  .chat-file-remove-icon:hover {
    display: flex;
  }
}

/* 知识库列表 */
.MessageBs_knowledgeList_case {
  position: relative;
  margin-top: 12px;

  .knowledge_title {
    font-family: PingFang SC;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #69798f;
    margin-bottom: 8px;
  }

  .knowledge_flowX {
    overflow-x: scroll;
    display: flex;
    flex-direction: row;
    /* 隐藏默认的滚动条样式 */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;

    /* IE and Edge */
    &::-webkit-scrollbar {
      display: none;
      /* Chrome, Safari, and Opera */
    }
  }

  .knowledge_flowX_cont {
    // background: darkolivegreen;
    background: #f5f7fb;
    font-family: PingFang SC;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    text-align: left;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    width: 209px;
    height: 68px;
    margin-right: 8px;
    flex-shrink: 0;
    /* 防止子元素缩小 */
  }

  .knowledge_icon {
    position: absolute;
    right: -10px;
    bottom: 12px;
  }
}

#message-panne {
  .chat-role-name {
    color: #7587a5;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    /* 166.667% */
  }

  .chat-custom-content {
    color: var(---, #000);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    /* 157.143% */

    .ant-image .ant-image-mask {
      background: none;
      cursor: zoom-in;
    }
    .ant-image {
      position: relative;
      &::after {
        content: '文生图';
        font-family: PingFang SC;
        font-weight: 400;
        font-size: 10px;
        line-height: 20px;
        letter-spacing: 0%;
        text-align: center;
        position: absolute;
        bottom: 0;
        right: 0;
        width: 42px;
        height: 20px;
        backdrop-filter: blur(4px);
        border-top-left-radius: 8px;
        border-bottom-right-radius: 8px;
        overflow: hidden;
        color: #ffffff;
      }
    }
  }
}

.bs-think-collapse {
  .ant-collapse-header {
    padding: 0 !important;
  }

  .bs-think-item-label {
    margin-bottom: 12px;
    font-size: 12px;
    background: #e0e7ff !important;
    // color: #69798F !important;
    border-radius: 10px;
    width: fit-content;
    height: 32px;
    line-height: 32px;
    padding: 0 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .bs-think-collapse-content {
    color: #8b8b8b !important;
    font-size: 13px !important;
  }

  .ant-collapse-content-box {
    position: relative !important;

    .bs-think-collapse-left {
      border-left: 2px solid #e5e5e5;
      height: calc(100% - 10px);
      margin-top: 5px;
      position: absolute;
      top: 0;
      left: 0;
    }
  }
}

.chatStopSize {
  font-family: PingFang SC;
  font-weight: 400;
  font-size: 12px;
  line-height: 20px;
  color: #69798f;
}

.chatMessageBotSize {
  font-family: PingFang SC;
  font-weight: 400;
  font-size: 12px;
  line-height: 20px;
  color: #7587a5;
}

/* 溯源 */
.Popover_contCase {
  border-radius: 8px;
  padding: 12px 20px 20px;
  background: #ffffff;
  position: relative;
  box-shadow: 0px 4px 32px 0px #4a62924d;

  .headName {
    font-family: PingFang SC;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;
    color: #131921;
  }

  .pdfTitle {
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;
    text-decoration: underline;
    text-decoration-style: solid;
    color: #69798f;
  }

  .sliceCase {
    width: 100%;
    // height: 384px;
    border-radius: 8px;
    padding: 8px 12px 12px;
    box-sizing: border-box;
    background: #f5f7fb;

    .slicehead {
      font-family: PingFang SC;
      font-weight: 600;
      font-size: 12px;
      line-height: 20px;
      letter-spacing: 0%;
      color: #7587a5;
    }

    .sliceCont {
      font-family: PingFang SC;
      font-weight: 400;
      font-size: 14px;
      line-height: 22px;
      letter-spacing: 0%;
      color: #131921 !important;
    }

    .img_list {
      height: 80px;
      width: 100%;
      position: relative;

      .img_case {
        border-radius: 6px;
        border-width: 1px;
        flex-shrink: 0;
      }
    }

    .img_rightIcon {
      position: absolute;
      right: 0;
      bottom: 22px;
    }
  }
}

.message_popover_case {
  top: 22px;
  left: 0;
  width: 560px;
}

@media (max-width: 1440px) {
  .message_popover_case {
    width: 480px;
    left: 50%;
    right: 0;
    transform: translateX(-50%);
  }
}

@media (max-width: 1280px) {
  .message_popover_case {
    width: 360px;
  }
}

@media (max-width: 1100px) {
  .message_popover_case {
    width: 240px;
  }
}

@media (max-width: 1000px) {
  .message_popover_case {
    width: 240px;
  }

  .Popover_contCase {
    height: 300px !important;
  }
}

.chat-file-loading-box {
  width: 100px;
  height: 100px;
  background-color: #444;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.chat-file-upload-def {
  width: 20px;
  height: 20px;
  margin: 0 8px;
  cursor: pointer;
}

.chat-file-upload-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fafafa; // 半透明灰色背景
  opacity: 0.8;
  z-index: 1000; // 确保覆盖在最上层
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.usr-file-file-box {
  width: 312px;
  background: #fafafa;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: start;
  overflow: hidden;
  cursor: pointer;
}

.file-uploaded-cloud-box {
  display: flex;
  justify-content: start;
  color: #7587a5;
  margin-top: 4px;
  font-size: 12px;
  gap: 4px;
}

.usr-uploaded-file-filename {
  width: 240px; /* 固定宽度 */
  white-space: nowrap; /* 禁止换行 */
  overflow: hidden; /* 超出部分隐藏 */
  text-overflow: ellipsis; /* 显示省略号 */
}

.chat_save_and_export_btn {
  display: flex;
  height: 28px;
  padding: 6px 8px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  background: #e0e7ff;
  margin-top: 12px;
  .word_btn_save_text {
    color: #5964f3;
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px; /* 166.667% */
    cursor: pointer;
  }
}

.chat_save_to_word_btn1 {
  width: 106px;
}

.chat_save_to_word_btn2 {
  width: 124px;
}

.chat_save_to_cloud_btn {
  width: 148px;
}

.custom-tooltip .ant-tooltip-inner {
  font-size: 12px;
  line-height: 1.5;
}

.knowledge-base-modal .ant-modal-content {
  padding: 12px;
  border-radius: 8px;
}

.knowledge-base-modal .ant-modal-header {
  padding: 0 0 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.knowledge-base-modal .ant-modal-body {
  padding: 12px 0 0 0;
}